package com.naiterui.ehp.bs.doctor.controller.inner;

import com.naiterui.ehp.bp.constants.SwaggerTag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.naiterui.ehp.bp.bo.doctor.DrDepartmentBO;
import com.naiterui.ehp.bp.constants.SwaggerTags;
import com.naiterui.ehp.bs.doctor.service.IDepartmentService;

import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;

/**
 * @author luao
 * @date 2021/8/27 8:13 下午
 **/
@Validated
@RestController
@RequestMapping("ad/inner/department")
@RequiredArgsConstructor
@Api(tags = {SwaggerTag.DOCTOR + SwaggerTag.INNER_API + SwaggerTag.BASIC_INFO})
public class AdInnerDepartmentController {

    private final IDepartmentService departmentService;

    @GetMapping
    public DrDepartmentBO getDepartment(String name) {
        return departmentService.getDepartmentByName(name);
    }
}
